package com.maimao.goods.client;

import com.maimao.core.constant.ServiceContainer;
import com.maimao.core.interceptor.FeignInterceptor;
import com.maimao.core.model.resp.Result;
import com.maimao.goods.client.factory.ShopFallBackFactory;
import com.maimao.goods.client.factory.UploadFallBackFactory;
import com.maimao.model.user.Shop;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author MaoLin Wang
 * @date 2020/12/22 7:54 下午
 */
@RequestMapping("/upload")
@FeignClient(value = ServiceContainer.UPLOAD_SERVICE, fallbackFactory = UploadFallBackFactory.class, configuration = FeignInterceptor.class)
public interface UploadClient {

    @PostMapping("/delete/batch")
    void deleteBatch(@RequestBody List<String> urls);
}
